package com.lsw.jgyf.inject.components;

import android.app.Application;


import com.lsw.jgyf.MyApplication;
import com.lsw.jgyf.httpapi.HttpService;
import com.lsw.jgyf.inject.modules.ApiModule;
import com.lsw.jgyf.inject.modules.AppModule;

import javax.inject.Singleton;

import dagger.Component;
import okhttp3.OkHttpClient;

/**
 * author：lsw
 */
@Singleton
@Component(modules = {AppModule.class, ApiModule.class})
public interface AppComponent {
    Application getApplication();

    OkHttpClient getOkHttpClient();

    void inject(MyApplication application);

    HttpService getHttpService();
}
